#! /bin/sh

echo "Changed to generate artifacts for jars in lib/globus"
echo "Use copy-globus-jars.sh to copy jars there"

for i in lib/*.jar 
do
  echo "        <dependency>"
  echo "            <groupId>net.glambda</groupId>"
  echo "            <artifactId>`basename $i .jar`</artifactId>"
  echo "            <version>3.0.1</version>"
  echo "            <scope>system</scope>"
  echo "            <systemPath>\${basedir}/lib/`basename $i`</systemPath>"
  echo "        </dependency>"
done

for i in lib/globus/*.jar
do
  echo "        <dependency>"
  echo "            <groupId>org.globus</groupId>"
  echo "            <artifactId>`basename $i .jar`</artifactId>"
  echo "            <version>4.2.1</version>"
  echo "            <scope>system</scope>"
  echo "            <systemPath>\${basedir}/lib/globus/`basename $i`</systemPath>"
  echo "        </dependency>"
done
